﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace ArmyCreator.Controls
{
    public partial class ScouadDetailControl : UserControl
    {
        private VisualStates state;
        public enum VisualStates { CollapsedState, ExpendedState }

        public ScouadDetailControl()
        {
            InitializeComponent();

            this.state = VisualStates.CollapsedState;

            VisualStateManager.GoToState(this, state.ToString(), true);
        }

        private void ShowDetail(object sender, System.Windows.Input.GestureEventArgs e)
        {
            this.state = this.state == VisualStates.CollapsedState ? VisualStates.ExpendedState : VisualStates.CollapsedState;

            VisualStateManager.GoToState(this, state.ToString(), true);
        }
    }
}
